package com.zhisheng.orders.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (Orders)表实体类
 *
 * @author 全哥
 * @since 2025-02-22 10:28:42
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class Orders extends Model<Orders> {

    @TableId
    private Long id;

    private Integer userId;

    private String status;

    private Date createTime;

    @TableLogic
    private Integer isDel;

    // 3: 收货地址
    private String address;
    // 4: 收货人姓名
    private String name;
    // 5: 收货人电话
    private String phone;





    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

